<?php
class ParaModel extends Action{
	//test
	//
	//############test
	public function getparao(){
		$info=collectinfo(__METHOD__,'',array());
		
		$para=M('para');
		$parao=$para->where('paraid=1')->find();

		return createarrok('ok',$parao,'',$info);
	}

	public function update($dt){
		$info=collectinfo(__METHOD__,'$dt',array($dt));
		if(isset($dt)===false){return createarrerr('error_code','dt 不能为空',$info);}//防止NULL
		unset($dt['_URL_']);
		
		$para=M('para');
		$para->where('paraid=1')->setField($dt);

		return createarrok('ok',$data,'',$info);
	}	
		

} 
?>